package com.gxa.shop.service.cart;

import com.gxa.shop.bean.pojo.Cart;
import com.gxa.shop.bean.vo.CartVo;

import java.util.List;

/**
 * com.gxa.shop.service.cart
 * User: 刁彦侨
 * Date: 2024/12/19 15:52
 * motto:   逆水行舟不进则退
 * Description:
 * Version: V1.0
 */
public interface CartService {
    List<CartVo> findById(String id);

    boolean addCart(Cart cart);

    boolean deleteCart(Integer userId,Integer productId);

    boolean deleteAllCart(Integer userId);

    boolean updateCart(Cart cart);
}
